package com.ruoyi.project.wechatprogram.webreport.service.impl;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.wechatprogram.webreport.domain.WxVisitData;
import com.ruoyi.project.wechatprogram.webreport.mapper.WxVisitDataMapper;
import com.ruoyi.project.wechatprogram.webreport.service.IWxVisitDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 餐品订单详情Service业务层处理
 * 
 * @author sxchen
 * @date 2020-04-21
 */
@Service
public class WxVisitDataServiceImpl implements IWxVisitDataService
{
    @Autowired
    private WxVisitDataMapper wxVisitDataMapper;

    /**
     * 查询历史就餐人数
     *
     * @param startT
     * @param endT
     * @return
     */
    @Override
    public List<WxVisitData> selectWxVisitData(String startT, String endT)
    {
        return wxVisitDataMapper.selectWxVisitData(startT, endT);
    }

    /**
     * 查询实时点餐人数、菜品数、点餐人员详情记录
     *
     * @param time
     * @return
     */
    @Override
    public List<WxVisitData> selectWxDetailMenuData(String time)
    {
        return wxVisitDataMapper.selectWxDetailMenuData(time);
    }

    /**
     * 查询实时餐品类型对应的就餐人数
     *
     * @param time
     * @return
     */
    @Override
    public List<WxVisitData> selectWxDetailCategoryData(String time)
    {
        return wxVisitDataMapper.selectWxDetailCategoryData(time);
    }
}
